package com.chenziwen.scala.chapter07

object Scala_Implicit04 {
  // 隐式类
  implicit class B(val a: A) {
    def addPrefix = "prefix" + a
  }

  def main(args: Array[String]): Unit = {
    val a = new A
    println(a.addPrefix)
  }

}

class A {

}